<?php

class Ext_View_Helper_PesosChilenos extends Zend_View_Helper_Abstract
{

    public function pesosChilenos( $string )
    {
        $count_dec = 0;
        
        if ( ! is_numeric( $string ) ) {
            return $string;
        }
        return '$ ' . number_format( $string, $count_dec, ',', '.' );
    
    }

}